package org.third.suite.bean.feature;

import java.io.Serializable;

public class Image implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -7715423290463612732L;
	private String image;

	public Image() {
		super();
	}

	public Image(String image) {
		super();
		this.image = image;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}




	@Override
	public boolean equals(Object obj) {
		if(obj == null) return false;
		if(this == obj) return true;
		if(obj instanceof Image){
			Image  image =(Image)obj;
          if(image.getImage().equalsIgnoreCase(this.getImage())) return true; // Just compare imagename

		}
		return false;
	}


	@Override
	public int hashCode() {

		return image.hashCode() ;
	}

	@Override
	public String toString() {
		return "Image{" +
				"image='" + image + '\'' +
				'}';
	}
}
